package com.qingcloud.fexecutor.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@ToString
@Accessors(chain = true)
@Table(name = "web_pub_page")
public class WebPubPage implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ApiModelProperty("应用Id")
    private Integer appId;

    @ApiModelProperty("分组ID")
    private Integer groupId;

    @ApiModelProperty("页面类型 1-自定义 2-外部链接")
    private Integer pageType;

    @ApiModelProperty("外部链接页面地址")
    private String links;

    @ApiModelProperty("编码")
    private String encoding;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("页面功能描述")
    private String comments;

    @ApiModelProperty("数据源ID")
    private Integer dsId;

    @ApiModelProperty("源码")
    private String source;

    @ApiModelProperty("封面图片")
    private String coverUrl;

    @ApiModelProperty("是否显示 0不显示 1显示")
    private Integer isShow;

    @ApiModelProperty("功能编号(关联通过用管理平台中的sys-function")
    private String functionId;

    @ApiModelProperty("记录类型（1:分组目录；2：页面; 3:button")
    private Integer pageCategory;

    @ApiModelProperty(value = "排序序号")
    private Integer sortNum;
}
